package com.haima.sage.bigdata.api.frame.process;

import com.haima.sage.bigdata.api.entity.api.Api;

import java.util.Map;

public abstract class ApiProcess {
    protected Api api;

    protected ApiProcess(Api api) {
        this.api = api;
    }

    public Api getApi() {
        return api;
    }

    public abstract boolean condition(Map<String, ?> params);

    public abstract Object execute(Map<String, ?> params) throws Exception;
}
